//课程详情套餐
function slideScroll(boxId, prevId, nextId, ulId, speed, autoplay) {
	var oBox = $(boxId),
		prev = $(prevId),
		next = $(nextId),
		oUl = $(ulId).find("ul"),
		ulW = oUl.find("li").outerWidth(true),
		oLi = oUl.find("li").length,
		s = speed,
		timer = null;
	oUl.css("width", oLi * ulW + "px");
	//click prev
	next.click(function() {
		if (!oUl.is(":animated")) {
			oUl.animate({"margin-left" : -ulW}, function() {
				oUl.find("li").eq(0).appendTo(oUl);
				oUl.css("margin-left" , 0);
			});
		}
	});
	//click next
	prev.click(function() {
		if (!oUl.is(":animated")) {
			oUl.find("li:last").prependTo(oUl);
			oUl.css("margin-left", -ulW);
			oUl.animate({"margin-left" : 0});
		}
	});
	//autoplay
	if (autoplay === true) {
		timer = setInterval(function() {
			prev.click();
		}, s * 1000);
		oBox.hover(function() {
			clearInterval(timer);
		}, function() {
			timer = setInterval(function() {
				prev.click();
			}, s * 1000)
		})
	}
}